摘要:
The 2nd Universal Cup Semifinals A 不懂,感觉有点道理但是不多。 C 先想想在已知一个前缀的情况下什么时候会硬抗伤害,什么时候会付出代价闪避。一定是剩下的元素的均值大于 \(m\)。那么 \(dp_{i,j,k,0/1}\) 表示前缀 \(i\) 选 \(j\) 个 阅读全文
摘要:
代码均使用自这里,特此注明出处。 无源汇上下界可行流 #include <bits/stdc++.h> #define int long long using namespace std; const int maxn=1e4+1212; const int N=250; const int inf 阅读全文